import { IQuoteDetails, IQuote } from "@/components/Quotation/index";
export const QuotationStore = {
  namespaced: true,
  state: {
    quote: null,
    quoteDetails: null,
  },
  mutations: {
    setQuote(state: { quote: null | IQuote }, quote: IQuote) {
      state.quote = quote;
    },
    setQuoteDetails(
      state: { quoteDetails: null | IQuoteDetails },
      quoteDetails: IQuoteDetails
    ) {
      state.quoteDetails = quoteDetails;
    },
  },
};
